package cn.liulingfengyu.behavioralpatterns.chainofresponsibilitypattern;

public class ConcreteHandlerB extends Handler {
    @Override
    public void handleRequest(int request) {
        if (request >= 10 && request < 20) {
            System.out.println("ConcreteHandlerB 处理请求 " + request);
        } else if (nextHandler != null) {
            nextHandler.handleRequest(request);
        }
    }
}